<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<script type="text/javascript" src="${ctx}/js/jquery.itextclear.js"></script>
<script type="text/javascript" src="${ctx}/js/cookie.js"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$(
								'input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea',
								'.form').iTextClear();
					});
</script>
<!-- jQplot CSS -->

<link rel="stylesheet" media="screen" href="${ctx}/css/Tree.css" />
<!-- jQplot CSS END -->

<!-- DATATABLES CSS -->
<link rel="stylesheet" media="screen"
	href="${ctx}/lib/datatables/css/vpad.css" />
<script type="text/javascript"
	src="${ctx}/lib/datatables/js/jquery.dataTables.js"></script>
<script type="text/javascript">
	/*$(document).ready(function() {
	    $('#example').dataTable({
	        "sPaginationType": "full_numbers"
	    });
	});*/
</script>
<!-- DATATABLES CSS END -->

<h1 class="page-title">学分管理</h1>

<div class="container_12 clearfix leading">

	<%--
    <%@ include file="/WEB-INF/pages/common/common_tree.jsp"%>
--%>

	<div class="tabs side grid_8 leading">

		<div class="grid_12">
			<div id="demo" class="clearfix">
				<table class="display" id="example">
					<thead>
						<tr>
							<th>所属年份</th>
							<th>岗位</th>
							<th>预设课程</th>
							<th>学分</th>
						</tr>
					</thead>
					<tbody>
						<s:if
							test="#request.dutyTargets==null || #request.dutyTargets.size<=0">
							<tr class="gradeA">
								<td colspan="4">暂无数据</td>
							</tr>
						</s:if>
						<s:else>
							<s:iterator var="target" status="sta"
								value="#request.dutyTargets">
								<s:if test="#sta.even">
									<tr class="gradeA">
								</s:if>
								<s:else>
									<tr class="gradeC">
								</s:else>
								<td><fmt:formatDate value="${target.trainPlan.planStartDate}" pattern="yyyy"/></td>
								<td>${target.duty.dutyName}</td>
								<td>${target.trainPlan.title}</td>
								<td>${target.credit}</td>
								</tr>
							</s:iterator>
						</s:else>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<p>
	<%@ include file="/WEB-INF/pages/common/main_orgtab_pager_train.jsp"%>
</p>
<div class="clear"></div>

